<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>逆转世界</title>
</head>

<body>
    <script src="./vue.js"></script>
    <div id="app">
        <div>{{ msg }}</div>
        <button @click="lmn">逆转世界</button>
    </div>
    <script>
        const app = new Vue({
            el: "#app",
            data: {
                msg: "Hello World"
            },
            methods: {
                lmn() {
                    this.msg = this.msg.split('').reverse().join('');
                }
            }
        })
    </script>
</body>

</html>